const Layout = () => import('@/layout/index.vue')
// 从指定目录下加载vue组件
const SysRole = () => import('@/views/system/role/index.vue')
const SysUser = () => import('@/views/system/user/index.vue')
const SysMenu = () => import('@/views/system/menu/index.vue')
export default [
  {
    path: '/system',
    component: Layout,
    //每个路由的名称必须唯一，使用他的路径
    name: 'system',
    meta: {
      title: '系统管理',
    },
    icon: 'Setting',
    children: [
      {
        path: 'sysRole',
        name: 'sysRole',
        component: SysRole,
        icon: 'UserFilled',
        meta: {
          title: '角色管理',
        },
      },
      {
        path: 'sysUser',
        name: 'sysUser',
        component: SysUser,
        icon: 'UserFilled',
        meta: {
          title: '用户管理',
        },
      },
      {
        path: 'sysMenu',
        name: 'sysMenu',
        component: SysMenu,
        icon: 'UserFilled',
        meta: {
          title: '菜单管理',
        },
      },
    ],
  },
]

// export default [
//   {
//     path: '/teacher',
//     component: Layout,
//     name: '讲师管理',
//     meta: {
//       title: 'teacher',
//     },
//     icon: 'icon-home',
//     children: [
//       {
//         path: '',
//         name: '讲师管理',
//         component: Teacher

//       },
//     ],
//   },
// ]
